package cn.itsource.org.mapper;

import cn.itsource.org.domain.TEmployee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {

    List<TEmployee> findAll();

    void save(TEmployee employee);

    int checkUsernameOrEmailOrPhoneIsExits(@Param("username") String username,@Param("phone") String phone,@Param("email") String email);
//    int checkUsernameOrEmailOrPhoneIsExits(TEmployee employee);

    TEmployee findById(Long id);
}
